<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
<link href="${pageContext.request.contextPath}/css/org_manager.css"
	rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/add_new_org.css"
	rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="bill"	class="team02.server.bean.BillModel" scope="page"></jsp:useBean>
<%
//権限をチェック
if(userBean.getAccessLevel()!=1){
	response.sendRedirect("404.html");
	return;
}

//保存する
if(request.getParameterMap().containsKey("save")){
	bill.setUnit_price(Integer.parseInt(request.getParameter("unit_price")));
	response.sendRedirect("bill_manager.t02");
}


%>
<div class="menu1"><%@include file="/jsputils/menu.jsp"%>
	<div class = "greeting_message">
		<%@include file="/jsputils/greeting.jsp"%>
	</div>
</div>
<div class="container">
<form action="" method="post" name="form">
	<div class="menu">
		<p class="menu_label">単価編集</p>
	</div>
		<table style="width: 40%" class="content_table">
			<tr>
				<td>単価： </td>
				<td><input type="text" id="unit_price" name="unit_price" value="<%=bill.getUnit_price()%>"/>VND</td>
				<td><input type="submit" name="save" value="保存"></td>
			</tr>
		</table>
</form>
</div>